<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>初识django</title>
</head>
<body>
    <img src="/static/1.png" />
    <img src="/static/1.jpg" />
    <img src="/static/2.jpg" />
    <h1>APPHome</h1>
    <div>{{v1}}</div>
    <ul>
        {% for item in v2 %}
        <li>{{item}}</li>
        {% endfor %}
    </ul>
    列表在djando中不支持list[下标]<br />
    如果想取下标为0的元素可以用 list.0
    <h2>{{v2.0}}</h2>
    <div>拿到字典中所有的键</div>
    {% for key in v3.keys %}
        <span>{{key}}</span>
    {% endfor %}
    <div>拿到字典中所有的值</div>
    {% for key in v3.values %}
        <span>{{key}}</span>
    {% endfor %}
    <div>拿到字典中所有的键值</div>
    {% for key,value in v3.items %}
        <div>{{key}}------------{{value}}</div>
    {% endfor %}
</body>
</html>